<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--使用CDN方式引入vue-->
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.4/vue.min.js"></script>

</head>
<body>
<h1>Vue组件综合实例一</h1>
<hr>

<div id="app">
    <my-tree-menu></my-tree-menu>
</div>
<!--引入自定义tree-components-->
<script src="components/treemenu.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {}
    })
</script>

<style>

    #app {
        margin: 0px auto;
        width: 160px;
        height: auto;
    }

    .menu {
        width: 160px;
        height: auto;
        padding: 0px;
        /*background: aliceblue;*/
        cursor: pointer;
    }

    .menu .menu_title {

        width: 100%;
        height: 40px;
        text-align: center;
        line-height: 40px;
        background: orange;
        color: #FFF;
    }

    .menu .menu_sub {
        width: 100%;
        height: 40px;
        text-align: center;
        line-height: 40px;
        background: aliceblue;
        color: #666;
    }
</style>
</body>
</html>
